// 判断时候在Iframe框架内,在则刷新父页面
if (self != top) {
    parent.location.reload(true);
    if (!!(window.attachEvent && !window.opera)) {
        document.execCommand("stop");
    } else {
        window.stop();
    }
}

function submitForm() {
    $.ajax({
        type: "POST",
        url: basePath + '/login',
        data: $('#loginForm').serialize(),// 你的formid
        beforeSend: function () {
            progressLoad();
        },
        error: function () {
            openMessage("连接出错,请稍后重试");
        },
        success: function (data) {
            progressClose();
            if (data.errStat == 0) {
                window.location.href = basePath + '/index';
                return;
            }
            openMessage(data.errMsg);
        }
    });
}


